﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace JSIF_WCFServer.Model
{
    /// <summary>
    /// Represents a piece of a books history
    /// </summary>
    [DataContract]
    public class HistoryItem
    {
        /// <summary>
        /// A comment describing the change that this piece of the history represents
        /// </summary>
        [DataMember]
        public String Comment {get;set;}

        /// <summary>
        /// The book specific version number of this piece of history
        /// </summary>
        [DataMember]
        public int VersionNumber {get;set;}

        /// <summary>
        /// A reference to the book this history item represents
        /// </summary>
        [DataMember]
        public Book Book { get; set; }
    }
}
